# -*- coding:utf-8 -*-
# 设置blender为中文界面，同时不出现启动画面，并将UI layout变为game logic

import bpy

# 取消启动画面
bpy.context.user_preferences.view.show_splash = False

# 将语言改为中文
bpy.context.user_preferences.system.use_international_fonts = True
bpy.context.user_preferences.system.language = 'zh_CN'
bpy.context.user_preferences.system.use_translate_interface = True
bpy.context.user_preferences.system.use_translate_tooltips = True
bpy.context.user_preferences.system.use_translate_new_dataname = True

# 将layout变为game logic
bpy.context.window.screen = bpy.data.screens['Game Logic']

# 保存设置
bpy.ops.wm.save_userpref()
